using System;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord;

namespace Old.KenEgozi.Com.Domain.Blog
{
	[ActiveRecord("Blog_Comments")]
	public class Comment : BlogBase<Comment>
	{
		private string _content;
		private string _name;
		private string _email;
		private string _homepage;
		private string _ipAddress;
		private Post _post = null;

		[Property]
		public string Content
		{
			get { return _content; }
			set { _content = value; }
		}

		[Property]
		public string Email
		{
			get { return _email; }
			set { _email = value; }
		}
		[Property]
		public string Name
		{
			get { return _name; }
			set { _name = value; }
		}
		[Property]
		public string Homepage
		{
			get { return _homepage; }
			set { _homepage = value; }
		}

		[Property]
		public string IpAddress
		{
			get { return _ipAddress; }
			set { _ipAddress = value; }
		}
		[BelongsTo("PostId")]
		public Post Post
		{
			get { return _post; }
			set { _post = value; }
		}
		public virtual void SetCreationDate(DateTime value)
		{
			_creationDate = value;
		}
		public virtual void SetUpdateDate(DateTime value)
		{
			_updateDate = value;
		}
	}
}
